<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
    <!-- Loading Bootstrap -->
    <link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
    <!-- Loading Flat UI -->
    <link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
    <link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
    <link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
</head>
<body>
	<form action="/cc/admin/Common/sort.html" method="post">
		<table class="table table-bordered table-hover">
			<thead>	
				<tr>
					<th>品牌ID</th>
					<th>品牌名称</th>
					<th>LOGO</th>
					<th>排序</th>
					<th>是否热门</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<?php foreach ($data as $v){?>
				<tr class="info">
					<td><?php echo $v['bid']?></td>
					<td> <?php echo $v['bname']?></td>
					<td><img src="<?php echo $v['blogo']?>" alt=""></td>
					<td><input type="text" name="bsort" value="<?php echo $v['bsort']?>"></td>
					<?php if($v['isHot']==1){?>
                
					<td>是</td>
					<?php }else{?>
					<td>否</td>
					
               <?php }?>
					<td>
						<a href="<?php echo U('Brand/edit',array('bid'=>$v['bid']))?>" class="btn btn-warning"><i class="icon-pencil icon-white"></i>修改</a>
						<a href="javascript:if(confirm('确认删除吗？')) location.href='<?php echo U('del',array('bid'=>$v['bid']))?>';" class="btn btn-danger"><i class="icon-trash icon-white"></i>删除</a>
					</td>
				</tr>
				<?php }?>
				<tr>
					<td colspan="6" align="center">
						<input type="hidden" name="table" value="brand">
						<input type="submit" value="排序" class="btn btn-success">
					</td>
				</tr>
			</tbody>
		</table>
	</form>
</body>
</html>